<header class="mui-bar mui-bar-black mui-bar-nav">
    <a class="mui-icon mui-icon-left-nav mui-pull-left" href="{:url('user/index')}"></a>
    <h1 class="mui-title">日志列表</h1>
</header>
<div class="mui-content mui-content-my projectList">
    <div class="search" id="startTime" data-options='{"type":"date"}'>
        <p><span id="userResult">{$chektime} </span><i class="mui-icon mui-icon-arrowdown"></i></p>
    </div>
    <div class="finance-msg-con">
        <ul>
 {volist name="result.rows" id="vv"}  
        <a href="{:url('log/log_detail',array('id'=>$vv['id']))}">
            <li class="<?php if($vv['log_type'] ==1){echo 'putong'; }else{echo 'xianqing';} ?>"> 
                <div class="finance-msg-con-left">
                    <h2>{$vv.site_name}</h2>
                    <p>提交人：{$vv.user_name}</p>
                </div>
                <div class="finance-msg-con-right">
                    <img src="__CDN__/style/images/header.png" alt="">
                </div> 
            </li>
        </a>
{/volist}     
        </ul>
    </div>
</div>
<div class="mui-content-padded btn-bottom-fixed"><a href="{:url('log/log_add')}">
    <button style="background: linear-gradient(-90deg, #3383FD, #78C2FF);border: none" type="button" class="mui-btn mui-btn-primary mui-btn-block">＋ 新增</button></a>
</div>
<script src="__CDN__/style/js/jquery-1.11.3.js"></script>
<script src="__CDN__/style/js/mui.poppicker.js"></script>
<script src="__CDN__/style/js/mui.picker.min.js"></script>
<script>
    (function ($,doc) {
        $.init();
        var result = $('#userResult')[0];
        var btns = $('#startTime');
        btns.each(function(i, btn) {
            btn.addEventListener('tap', function() {
                var optionsJson = this.getAttribute('data-options') || '{}';
                var options = JSON.parse(optionsJson);
                var picker = new $.DtPicker(options);
                picker.show(function(rs) {
                    result.innerHTML = rs.text;
                    //console.log(123);
                    location.href="/index/log/log_list/log_time/"+rs.text+".html"; 
                    picker.dispose();
                });
            }, false);
        });
    })(mui,document);
</script>
 